<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:dt="http://java.sun.com/jsf/composite/components"
                template="./template.xhtml">

    <ui:define name="mainContent">
        <h:head>
            <title>Register</title>
        </h:head>
        <h:form name="registerForm">
            
            <h:panelGrid id="createAccountPanel" columns="2"
                         summary="Register">
                
                <h:outputLabel for="username" value="Enter your username:" />
                <h:inputText id="username" value="#{accountController.selected.username}" />                
                <h:outputLabel for="password" value="Enter your password:" />
                <h:inputSecret id="password" value="#{accountController.selected.password}" />                
                <h:outputLabel for="first name" value="Enter your first name:" />
                <h:inputText id="firstname" value="#{accountController.selected.firstname}" />                
                <h:outputLabel for="last name" value="Enter your last name:" />
                <h:inputText id="lastname" value="#{accountController.selected.lastname}" />
                <h:outputLabel for="email" value="Enter your email address:" />
                <h:inputText id="email" value="#{accountController.selected.email}" />
                
            </h:panelGrid>  
                
            <ul class="commandButtons">
                    <li><h:commandButton type="submit" action="#{accountController.create()}" value="Submit" /></li>
                    <li><h:commandButton type="reset" value="Cancel" /></li>
            </ul>
        </h:form>
    </ui:define>
</ui:composition>
